<li id="category-<%= cat.id %>" class="dd-item category-item clearfix adoptable ui-state-default" data-id='<%= "#{cat.id}" %>' data-obj='category' style="padding-bottom: 0;">
  <div class="category-row row vcenter hoversort border-bottom" style="padding-bottom: 10px;" data-obj-id='<%= "#{cat.id}" %>'>
    <div class="dd-handle text-left col-md-7 col-sm-11 col-xs-10 <%= 'grayout' unless cat.active? %>">
      <%= content_tag :span, class: 'more-important' do
          link_to("#{cat.name}", admin_category_path(cat.id)) 
        end
      %>
      <br/>
      <%= content_tag :span do
          concat cat.meta_description
        end
      %>
    </div>
    <div class="text-right col-md-4 col-sm-4 col-xs-4 hidden-xs hidden-sm <%= 'grayout' unless cat.active? %>">
      <span class="label label-count pull-right"><%= cat.docs.size %></span>
      <%= i18n_icons(cat) if AppSettings['i18n.available_locales'].count > 1 %>
    </div>
    <div class="text-right col-md-1 col-sm-1 col-xs-2">
      <div class="btn-group">
        <span id="row-<%= cat.id %>" data-toggle="dropdown" aria-expanded="false" class='btn dropdown-toggle fas fa-ellipsis-v'></span>
        <ul class="dropdown-menu dropdown-menu-right" role="menu">
          <li><%= link_to t(:edit, default: 'Edit'), edit_admin_category_path(id: cat.id, lang: I18n.locale) %></li>
          <li><%= link_to t(:delete, default: 'Delete'), admin_category_path(id: cat.id),
            data: {confirm: t(:delete_confirm,
            default: 'Please confirm you really want to DELETE this, and all articles')},
            method: :delete, remote: true, class: 'less-important' unless cat.system_resource? %>
          </li>
          <li><%= link_to t(:view_and_edit, default: "View and Edit content"),
          admin_category_path(cat.id), class: 'less-important' %></li>
          <li><%= link_to t(:new_content, default: 'New Content'),
          new_admin_category_doc_path(category_id: cat.id, lang: I18n.locale) %></li>
        </ul>
      </div>
    </div>
  </div>

  <% if cat.children.size > 0 %>
  <ol class="dd-list">
    <% cat.children.publicly.ordered.each do |child| %>
      <%= render partial: 'admin/categories/cat', object: child %>
    <% end %>
  </ol>
  <% end %>
</li>